home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
demos
/
GL
/
ideas
/
m.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
4KB
|
210 lines
/*
* Copyright 1992, 1993, 1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
*/
#include <gl.h>
float m_data[][2] = {
{0.590769, 9.449335},
{2.116923, 9.842375},
{1.362051, 9.383828},
{2.527179, 9.825998},
{1.591795, 9.072672},
{2.789744, 9.514841},
{1.690256, 8.663255},
{2.658462, 8.335722},
{1.575385, 7.222108},
{2.067692, 6.255886},
{0.918974, 4.028659},
{1.050256, 3.013306},
{0.705641, 3.013306},
{2.018461, 6.386899},
{1.788718, 5.617196},
{2.921026, 7.991812},
{3.167180, 8.008188},
{3.544615, 8.827022},
{3.872821, 8.843398},
{4.414359, 9.547595},
{4.447179, 9.056294},
{5.120000, 9.891504},
{4.841026, 8.843398},
{5.825641, 9.809621},
{5.005128, 8.040941},
{5.989744, 8.761515},
{4.906667, 6.714432},
{5.595897, 7.123848},
{3.987692, 2.996929},
{4.348718, 2.996929},
{5.218462, 5.977482},
{5.251282, 6.354146},
{6.449231, 7.893552},
{6.400000, 8.221085},
{7.302564, 8.843398},
{7.351795, 9.334698},
{7.827693, 9.154554},
{8.008205, 9.842375},
{8.139487, 9.121801},
{8.795897, 9.973388},
{8.402051, 8.728762},
{9.337436, 9.531218},
{8.402051, 8.040941},
{9.288205, 8.433982},
{7.745641, 5.813715},
{8.320000, 5.928352},
{7.286154, 4.012282},
{7.991795, 4.126919},
{7.499487, 3.357216},
{8.533334, 3.766633},
{8.123077, 3.062436},
{8.927179, 3.832139},
{8.910769, 3.340839},
{9.550769, 4.126919},
};
draw_m() {
bgnline();
v2f(m_data[0]);
v2f(m_data[2]);
v2f(m_data[4]);
v2f(m_data[6]);
v2f(m_data[8]);
v2f(m_data[10]);
v2f(m_data[12]);
v2f(m_data[11]);
v2f(m_data[9]);
v2f(m_data[7]);
v2f(m_data[5]);
v2f(m_data[3]);
v2f(m_data[1]);
endline();
bgnline();
v2f(m_data[14]);
v2f(m_data[16]);
v2f(m_data[18]);
v2f(m_data[20]);
v2f(m_data[22]);
v2f(m_data[24]);
v2f(m_data[26]);
v2f(m_data[28]);
v2f(m_data[29]);
v2f(m_data[27]);
v2f(m_data[25]);
v2f(m_data[23]);
v2f(m_data[21]);
v2f(m_data[19]);
v2f(m_data[17]);
v2f(m_data[15]);
v2f(m_data[13]);
endline();
bgnline();
v2f(m_data[30]);
v2f(m_data[32]);
v2f(m_data[34]);
v2f(m_data[36]);
v2f(m_data[38]);
v2f(m_data[40]);
v2f(m_data[42]);
v2f(m_data[44]);
v2f(m_data[46]);
v2f(m_data[48]);
v2f(m_data[50]);
v2f(m_data[52]);
v2f(m_data[53]);
v2f(m_data[51]);
v2f(m_data[49]);
v2f(m_data[47]);
v2f(m_data[45]);
v2f(m_data[43]);
v2f(m_data[41]);
v2f(m_data[39]);
v2f(m_data[37]);
v2f(m_data[35]);
v2f(m_data[33]);
v2f(m_data[31]);
endline();
bgntmesh();
v2f(m_data[0]);
v2f(m_data[1]);
v2f(m_data[2]);
v2f(m_data[3]);
v2f(m_data[4]);
v2f(m_data[5]);
v2f(m_data[6]);
v2f(m_data[7]);
v2f(m_data[8]);
v2f(m_data[9]);
v2f(m_data[10]);
v2f(m_data[11]);
v2f(m_data[12]);
endtmesh();
bgntmesh();
v2f(m_data[13]);
v2f(m_data[14]);
v2f(m_data[15]);
v2f(m_data[16]);
v2f(m_data[17]);
v2f(m_data[18]);
v2f(m_data[19]);
v2f(m_data[20]);
v2f(m_data[21]);
v2f(m_data[22]);
v2f(m_data[23]);
v2f(m_data[24]);
v2f(m_data[25]);
v2f(m_data[26]);
v2f(m_data[27]);
v2f(m_data[28]);
v2f(m_data[29]);
endtmesh();
bgntmesh();
v2f(m_data[30]);
v2f(m_data[31]);
v2f(m_data[32]);
v2f(m_data[33]);
v2f(m_data[34]);
v2f(m_data[35]);
v2f(m_data[36]);
v2f(m_data[37]);
v2f(m_data[38]);
v2f(m_data[39]);
v2f(m_data[40]);
v2f(m_data[41]);
v2f(m_data[42]);
v2f(m_data[43]);
v2f(m_data[44]);
v2f(m_data[45]);
v2f(m_data[46]);
v2f(m_data[47]);
v2f(m_data[48]);
v2f(m_data[49]);
v2f(m_data[50]);
v2f(m_data[51]);
v2f(m_data[52]);
v2f(m_data[53]);
endtmesh();
}